//
//  UIWebView+Phone.m
//  yinliaopifa
//
//  Created by 肖兰月 on 2017/1/12.
//  Copyright © 2017年 itcast. All rights reserved.
//

#import "UIWebView+Phone.h"


@implementation UIWebView (Phone)


+ (void)webViewWithNumber:(NSString *)number{
    UIWebView *webView = [[UIWebView alloc] init];
    NSString *urlStr = [NSString stringWithFormat:@"tel://%@",number];
    NSURL *url = [NSURL URLWithString:urlStr];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
    [[UIApplication sharedApplication].keyWindow addSubview:webView];
}

@end
